package com.atguigu.tingshu.payment.client;


import com.atguigu.tingshu.common.login.GuiguLogin;
import com.atguigu.tingshu.payment.service.AccountPayService;
import com.atguigu.tingshu.payment.service.WxPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/***
 * service-payment 余额支付内部调用接口
 * FeignClient --> AccountPayFeignClient
 */
@RestController
@RequestMapping("/client/payment/accountPay")
public class AccountPayClientController {

    @Autowired
    private AccountPayService accountPayService;

    /**
     * 获取账户余额支付url
     * @param params
     * @return
     */
    @GetMapping("/getPayInfoFromAccount")
    public String getPayInfoFromAccount(@RequestParam Map<String,String> params){
        return accountPayService.getPayInfoFromAccount(params);
    }



}
